package kburndown.client.app.controls
{
	import flash.events.Event;

	public class TaskItemEvent extends Event
	{
		public static const FINISH: String = "finish";

		public static const DELETE: String = "delete";
		
		public static const RESTORE: String = "restore";

		public static const STRETCH_START: String = "stretchStart";

		public static const STRETCH: String = "stretch";

		public static const STRETCH_END: String = "stretchEnd";

		public static const DRAG_START: String = "dragStart";

		public static const DRAG: String = "drag";

		public static const DRAG_END: String = "dragEnd";


		private var _startPos:Number;
		
		public function get startPos():Number
		{
			return _startPos;
		}
		
		private var _distance: Number;

		public function get distance(): Number
		{
			return _distance;
		}


		public function TaskItemEvent(type: String, startPos: Number = NaN, distance: Number = NaN, bubbles: Boolean = false, cancelable: Boolean = false)
		{
			super(type, bubbles, cancelable);
			_startPos = startPos;
			_distance = distance;
		}
	}
}